<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            font: 16px;
            text-align: center;
        }
        
        code,
        input,
        button {
            font-family: inherit;
        }
        
        button {
            cursor: pointer;
        }
    </style>


</head>

<body>
    <p><input type="text" value="内蒙" /></p>
    <p><input type="text" value="鄂尔多斯" /></p>
    <p><button>传参</button></p>
</body>
<script>
    var wd = function(a, b) {
        alert(a.value);
        alert(b.value)
    };
    var fds = document.getElementsByTagName("input");
    var axp = document.getElementsByTagName("button")[0];
    axp.onclick = function() {
        wd(fds[0], fds[1])
    }
</script>

</html>